<?php
$con=mysql_connect("localhost","root","root");

if($con){
	mysql_select_db("quanlydiadiem",$con);
	mysql_query("SET CHARACTER SET utf8");
	mysql_query("SET NAMES 'utf8'");
}
else{
	die("Could not connect to database");
}
?>